package top.blentle.ai.data;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.system.ApplicationPidFileWriter;
import org.springframework.context.annotation.Import;
import top.blentle.ai.data.endpoint.WebSocketServer;

@SpringBootApplication
@EnableAutoConfiguration
@Import({AiContext.class, WebSocketServer.class})
public class App {
	
	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(App.class);
		app.addListeners(new ApplicationPidFileWriter("application.pid"));
		app.run(args);
	}

}
